﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SQT.tracnghiem.Ajax.ASP.User
{
    public partial class check_special_string : System.Web.UI.Page
    {
        public int check = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            string s = Request.QueryString["string"];
            if (isValid(s) == false)
                check = 2;
        }
        private static bool isValid(String str)
        {
            return Regex.IsMatch(str, @"^[a-zA-Z0-9]+$");
        }
    }
}